<template>
    <div>
        <van-field lambda='角色名' v-model="name" />
        <van-field lambda='角色名' v-model="name" />
        <button @click="add">添加</button>
    </div>
</template>

<script>
    export default {
        data(){
            return{
                name:''
            }
        },
        methods:{
            add(){
                this.axios.post('resourceM',{'name':this.name,'url':this.url})
                .then(res=>{

                })
            }
        }
    }
</script>

<style scoped>

</style>